<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
    <title></title>
    <link href="<s:url value='/common/lib/ligerUI/skins/Aqua/css/ligerui-all.css'/>" rel="stylesheet" type="text/css" />
    <script src="<s:url value='/common/lib/jquery/jquery-1.3.2.min.js'/>" type="text/javascript"></script>
    <script src="<s:url value='/common/lib/ligerUI/js/core/base.js'/>" type="text/javascript"></script>
    <script src="<s:url value='/common/lib/ligerUI/js/plugins/ligerGrid.js'/>" type="text/javascript"></script>
	<script src="<s:url value='/common/lib/ligerUI/js/plugins/ligerResizable.js'/>" type="text/javascript"></script>
    
    <script type="text/javascript">
        var manager = null;
        $(f_initGrid);
        function f_initGrid() {
        	var index = $("#index").val();
        	if(index == '1') {
        		manager = $("#maingrid").ligerGrid({
                    columns: [
    				{display:'开单日期', name:'orderStartDate', width:80},
    				{display:'VIN码', name:'VINCode', width:80},
    				{display:'发动机号', name:'enginCode', width:80},
    				{display:'车辆代码', name:'autoCode', width:80},
    				{display:'车辆名称', name:'autoName', width:80},
    				{display:'颜色代码', name:'colorNumber', width:80},
    				{display:'颜色名称', name:'colorName', width:80},
                    {display:'车辆名称大类', name:'autoKind', width:80}],
                    enabledEdit:false,
    				clickToEdit:false,
    				width: '100%',
    				pageSize:20,
                    data:eval('(' + $("#recordsJOSNStr").val() + ')')
                });
        	} else if(index == '4' || index == '5') {
        		manager = $("#maingrid").ligerGrid({
	                columns: [
					{display:'开单日期', name:'orderStartDate', width:80},
					{display:'VIN码', name:'VINCode', width:80},
					{display:'发动机号', name:'enginCode', width:80},
					{display:'车辆代码', name:'autoCode', width:80},
					{display:'车辆名称', name:'autoName', width:80},
					{display:'颜色代码', name:'colorNumber', width:80},
					{display:'颜色名称', name:'colorName', width:80},
	                {display:'车辆名称大类', name:'autoKind', width:80},
	                {display:'实际库龄', name:'actualAge', width:80}],
	                enabledEdit:false,
					clickToEdit:false,
					width: '100%',
					pageSize:20,
	                data:eval('(' + $("#recordsJOSNStr").val() + ')')
	            });
        	} else {
	           	manager = $("#maingrid").ligerGrid({
	                columns: [
					{display:'开单日期', name:'orderStartDate', width:80},
					{display:'VIN码', name:'VINCode', width:80},
					{display:'发动机号', name:'enginCode', width:80},
					{display:'车辆代码', name:'autoCode', width:80},
					{display:'车辆名称', name:'autoName', width:80},
					{display:'颜色代码', name:'colorNumber', width:80},
					{display:'颜色名称', name:'colorName', width:80},
	                {display:'存放地点', name:'storageLocation', width:80},
	                {display:'车辆名称大类', name:'autoKind', width:80},
	                {display:'实际库龄', name:'actualAge', width:80}],
	                enabledEdit:false,
					clickToEdit:false,
					width: '100%',
					pageSize:20,
	                data:eval('(' + $("#recordsJOSNStr").val() + ')')
	            });
           	}
        }
    </script>
</head>
<body  style="padding:10px">
	<s:hidden name="recordsJOSNStr"/>
	<s:hidden name="index"/>
	<div class="l-clear"></div>
	
    <div id="maingrid" style="margin-top:20px"></div>
    
   	<div style="display:none;"></div>
</body>
</html>